#include <iostream>

class Obj {
public:
    void sayHello() {
        std::cout << "Hello World!\n";
    }

    ~Obj() {
        std::cout << "Bye World!\n";
    };
};

int main() {
    do {
        auto obj = std::make_shared<Obj>();
        obj->sayHello();
    } while (false);
    return 0;
}
